
package ProOF.apl.methods.GA.population;

import ProOF.com.language.Factory;

/**
 *
 * @author Hossomi
 */
public class fPopulation extends Factory<aPopulation> {
	public static final fPopulation obj = new fPopulation();
	
	@Override
	public String name() {
		return "Population";
	}

	@Override
	public aPopulation NewNode(int index) {
		switch (index) {
            case 0: return new PopulationOpEvolve();
            case 1: return new PopulationRoulette();
		}
		
		return null;
	}
	
}
